package com.zhou.org.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 
 * </p>
 *
 * @author lang.zhou
 * @since 2022-08-23
 */
@Data
public class MenuRightSaveDto implements Serializable {
    @Positive
    private Integer orgId;


    /**
     * 权限定义
     */
    @NotBlank
    private String rightKey;
    @NotBlank
    private String rightType;
    @NotEmpty
    @Valid
    private List<Check> changeNode;

    @Data
    public static class Check{
        private String id;
        //private Boolean checked;
        private Integer clickNum = 0;
    }



}
